package net.huashitong.Indicators.utils;

import net.huashitong.Indicators.filter.IndicatorBreakdownFilter;

public class IndustryNameUtils {
	public static String SolidIndexId="A07";//固定资产投资
	public static String GDPIndexId="A01"     ;//GDP
	public static String ProOneIndexId="A02"     ;//第一产业
	public static String ProTwoIndexId="A03"     ;//第二产业
	public static String ProThitIndexId="A06"     ;//第三产业
	public static String BuildIndexId="A04"     ;//建筑业
	public static String ZeorIndexId="A13"     ;//社零
	public static String SizeOfIndexId="A05"     ;//规上
	public static String IndustryIndexId="A08"     ;//工业固投
	public static String PublicTotalIndexId="A09"     ;//公共预总算收入
	public static String PublicIndexId="A10"     ;//公共预算收入
	public static String RealOutForeignIndexId="A15"     ;//实际利用外资
	public static String OutTotalIndexId="A14"     ;//进出口总值
	public static String NLMYIndexId="A11"     ;//农林牧渔业
	public static String CityIncomeIndexId="A18"     ;//城镇人均收入
	public static String CountryIncomeIndexId="A19"     ;////农村人均收入
	public static String SizeOfIndexTotalId="A12";//规上总产
	public static String BuildIndexTotalId="A20";//建筑业总产值
	
	public static IndicatorBreakdownFilter changeName(IndicatorBreakdownFilter filter){
		if(SolidIndexId.equals(filter.getIndustryId())){
			filter.setIndustryName("固定资产投资");
		}
		if(GDPIndexId.equals(filter.getIndustryId())){
			filter.setIndustryName("地区生产总值");
		}
		if(ProOneIndexId.equals(filter.getIndustryId())){
			filter.setIndustryName("第一产业增加值");
		}
		if(ProTwoIndexId.equals(filter.getIndustryId())){
			filter.setIndustryName("第二产业增加值");
		}
		if(ProThitIndexId.equals(filter.getIndustryId())){
			filter.setIndustryName("第三产业增加值");
		}
		if(BuildIndexId.equals(filter.getIndustryId())){
			filter.setIndustryName("建筑业增加值");
		}
		if(ZeorIndexId.equals(filter.getIndustryId())){
			filter.setIndustryName("社会消费品零售总额");
		}
		if(SizeOfIndexId.equals(filter.getIndustryId())){
			filter.setIndustryName("规模以上工业增加值");
		}
		if(IndustryIndexId.equals(filter.getIndustryId())){
			filter.setIndustryName("工业固投");
		}
		if(PublicTotalIndexId.equals(filter.getIndustryId())){
			filter.setIndustryName("一般公共预算总收入");
		}
		if(PublicIndexId.equals(filter.getIndustryId())){
			filter.setIndustryName("一般公共预算收入");
		}
		if(RealOutForeignIndexId.equals(filter.getIndustryId())){
			filter.setIndustryName("实际利用外资");
		}
		if(OutTotalIndexId.equals(filter.getIndustryId())){
			filter.setIndustryName("进出口总值");
		}
		if(NLMYIndexId.equals(filter.getIndustryId())){
			filter.setIndustryName("农林牧渔业总产值");
		}
		if(CityIncomeIndexId.equals(filter.getIndustryId())){
			filter.setIndustryName("城镇居民人均可支配收入");
		}
		if(CountryIncomeIndexId.equals(filter.getIndustryId())){
			filter.setIndustryName("农村居民人均可支配收入");
		}
		if(SizeOfIndexTotalId.equals(filter.getIndustryId())){
			filter.setIndustryName("规模以上工业产值 ");
		}
		return filter;
	}
	public static IndicatorBreakdownFilter changeId(IndicatorBreakdownFilter filter){
		if("地区生产总值".equals(filter.getIndustryName())){
			filter.setIndustryId(GDPIndexId);
		}else if("第一产业增加值".equals(filter.getIndustryName())){
			filter.setIndustryId(ProOneIndexId);
		}else if("第二产业增加值".equals(filter.getIndustryName())){
			filter.setIndustryId(ProTwoIndexId);
		}else if("第三产业增加值".equals(filter.getIndustryName())){
			filter.setIndustryId(ProThitIndexId);
		}else if("建筑业增加值".equals(filter.getIndustryName())){
			filter.setIndustryId(BuildIndexId);
		}else if("社会消费品零售总额".equals(filter.getIndustryName())){
			filter.setIndustryId(ZeorIndexId);
		}else if("规模以上工业增加值".equals(filter.getIndustryName())){
			filter.setIndustryId(SizeOfIndexId);
		}else if("固定资产投资".equals(filter.getIndustryName())){
			filter.setIndustryId(SolidIndexId);
		}else if("工业固投".equals(filter.getIndustryName())){
			filter.setIndustryId(IndustryIndexId);
		}else if("一般公共预算总收入".equals(filter.getIndustryName())){
			filter.setIndustryId(PublicTotalIndexId);
		}else if("一般公共预算收入".equals(filter.getIndustryName())){
			filter.setIndustryId(PublicIndexId);
		}else if("进出口总值".equals(filter.getIndustryName())){
			filter.setIndustryId(OutTotalIndexId);
		}else if("实际利用外资".equals(filter.getIndustryName())){
			filter.setIndustryId(RealOutForeignIndexId);
		}else if("城镇居民人均可支配收入".equals(filter.getIndustryName())){
			filter.setIndustryId(CityIncomeIndexId);
		}else if("农村居民人均可支配收入".equals(filter.getIndustryName())){
			filter.setIndustryId(CountryIncomeIndexId);
		}else if("规模以上工业产值".equals(filter.getIndustryName())){
			filter.setIndustryId(SizeOfIndexTotalId);
		}
		return filter;
	}
}
